package com.link2room.soundwave.controller.manager;

import com.link2room.common.dto.param.base.BaseL2rParamDto;
import com.link2room.common.dto.result.base.BaseResultDto;
import com.link2room.soundwave.dto.result.base.PmsGroupRmtypeDto;
import com.link2room.soundwave.util.HandlerUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by VegetaKo on 2016/11/15.
 */
@Api(tags = "PMS房型相关")
@RestController
@RequestMapping("/manager/PmsRmtypes")
public class PMSRmtypeManagerController {

    @ApiOperation(value ="查询PMS集团房型" ,response = PmsGroupRmtypeDto.class)
    @RequestMapping(value = "/PmsGroupRmtypes",method = RequestMethod.GET)
    //@L2RPermissionResources(value = PMSHotels,optType = OptType.VIEW)
    public BaseResultDto listPmsGroupRmtype(
    ) throws Exception{
        BaseL2rParamDto baseL2rParamDto=new BaseL2rParamDto();
        BaseResultDto baseResultDto = new BaseResultDto();
        baseResultDto.setResultCode(0);
        baseResultDto.setQueryResult(HandlerUtil.pmsRmtypeHandler().listPmsGroupRmtypeHandler(baseL2rParamDto));
        return  baseResultDto;
    }

}
